package com.babble.blog.feign;

import com.babble.blog.vo.BlogVO;
import org.springblade.common.constant.CommonConstant;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(
	value = CommonConstant.BABBLE_BLOG_NAME
)
public interface IBlogClient {
	String API_PREFIX = "/babble/blog";

	/**
	 * 添加子项
	 *
	 * @param
	 * @return
	 */
	@GetMapping(API_PREFIX + "/listById")
	R<List<BlogVO>> listOfBlogCategory(@RequestParam("id")String id);
}
